package com.openecommerce.core.constants;

/**
 * 一般常量
 * @author Tommy
 *
 */
public class CommonConstants {
	/**
	 * 一般状态
	 * @author Tommy
	 *
	 */
	public static class CommonStatus{
		/**
		 * 可用状态
		 */
		public final static short ENABLE = 1;
		/**
		 * 无用状态
		 */
		public final static short DISABLE = 0;
	}
	/**
	 * 地址类型
	 * @author Tommy
	 *
	 */
	public static class AddressType{
		//共用地址
		public final static short COMMON_ADDRESS = 0;
		//发货地址
		public final static short SHIPPING_ADDRESS = 1;
		//帐单地址
		public final static short BILLING_ADDRESS = 2;
	}
	
	/**
	 *用户余额操作类型
	 * @author Tommy
	 *
	 */
	public static class BalanceAction{
		//充值
		public final static String CHARGE = "charge";
		//消费
		public final static String CONSUME = "consume";
		//退款
		public final static String REFOUND = "refound";
	}
}
